import { BaseEntity } from '../../base/entity/base';
import { Column, Entity } from 'typeorm';

/**
 * 自动化流水线
 */
@Entity('automation_pipeline')
export class AutomationPipelineEntity extends BaseEntity {
  @Column({ comment: '名称' })
  name: string;

  @Column({ comment: '是否启用', dict: ['禁用', '启用'], default: 1 })
  status: number;

  @Column({ comment: '触发方式', dict: ['立即', '延时'], default: 0 })
  triggerType: number;

  @Column({ comment: '条件关系', dict: ['全部满足', '任一满足'], default: 0 })
  conditionRelation: number;

  @Column({ comment: '备注', nullable: true })
  remark: string;
}